package com.wsd.bookkeeping.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsd.bookkeeping.entity.Comment;
import com.wsd.bookkeeping.entity.query.CommentQuery;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    @MapKey("id")
    List<Map<String, Object>> queryByPage(@Param("query")CommentQuery commentQuery);

}
